<!DOCTYPE html>
{% extends 'common/base.html' %}
{% block title %}
    {{ current_user.username }}的帖子
{% endblock %}
{% block page_content %}
    <div class="row">
        <div class="col-md-1"></div>
        <div class="col-md-10" style="">
            <h3>{{ newlist[0].user.username }}的帖子</h3>
            {% for post in newlist %}
                <div class="list-group">
                    <a href="#" class="list-group-item active" style="overflow: hidden">
                        <h4 class="list-group-item-heading">{{ post.content }}</h4>
                        <p>发帖时间：{{ moment(post.timestamp).format('LLL') }}</p>
                        <p style="float: right">-->发帖人：{{ post.user.username }}</p>
                    </a>
                </div>
            {% endfor %}
        </div>
        <div style="width: 100%;text-align: center">
            {{ pagination_show(pagination,'user.userposts') }}
        </div>
        <div class="col-md-1"></div>
    </div>
{% endblock %}